<!DOCTYPE html>
<html>
<head>
    <meta charset='UTF-8'>
    <title>下拉菜单v0.2</title>
    <style>
        * {
            font-family: '微软雅黑';
        }
        .dropdown{
            display: inline-block;
        }
        .dropdown-content{
            color: black;
            display: none;
            position: absolute;
            background: ghostwhite;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            padding: 10px;
            z-index: 1;
        }
        .dropdown:hover .dropdown-content{
            display: block;
        }
    </style>
</head>
<body>
    <div class="dropdown">
        <span>指向我</span>
        <div class="dropdown-content">
            <span>Fuck You</span>
        </div>
    </div>
    <p>再也不怕被挤过去了，因为position: absolute</p>
</body>
</html>